

int fifo_addin(uint8_t dat, uint32_t *idx, uint32_t *odx, uint8_t *fifoaddr, uint32_t fifosize);
int fifo_getout(uint8_t *dat, uint32_t *idx, uint32_t *odx, uint8_t *fifoaddr, uint32_t fifosize);
int fifo_peek(uint8_t *dat, uint32_t *idx, uint32_t *odx, uint8_t *fifoaddr);
int fifo_delete(uint32_t *idx, uint32_t *odx, uint8_t fifosize);
